<template>
  <div class="main_table">
    <div class="title1">
      第五部分 续贷财务数据对比
    </div>
    <div class="title2 emp">
      1、续贷数据分析
    </div>
    <div>{{ refinanceDataXrd }}</div>
    <div class="title2 emp">
      2、原贷款财务报表信息
    </div>
    <div v-if="titleCont.statementType==='1'">

      <div class="title3 emp">
        财务报表及营运资金量信息（一般小企业财务报表通用版）
      </div>
      <div class="title4 emp">
        资产负债表
      </div>
      <div class="table1 table1_2">
        <div class="table_cont  emp">
          <div class="label">资产</div>
          <div class="label_cont">期初（元）</div>
          <div class="label_cont">期末（元）</div>
        </div>

        <div class="table_cont  emp">
          <div class="label">负债</div>
          <div class="label_cont">期初（元）</div>
          <div class="label_cont">期末（元）</div>
        </div>

        <div class="table_cont  emp">
          <div class="label">流动资产：</div>
        </div>

        <div class="table_cont  emp">
          <div class="label">流动负债：</div>
        </div>
        <!-- ================================================== -->
        <div class="table_cont  emp">
          <div class="label">  货币资金</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010101.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010101.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">  短期借款</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010301.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010301.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">    短期投资</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010102.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010102.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">    应付票据</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010302.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010302.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">    应收票据</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010103.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010103.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">  应付账款</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010303.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010303.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">  应收账款</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010104.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010104.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">  预收账款</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010304.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010304.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">  预付账款</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010105.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010105.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">    应付职工薪酬</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010305.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010305.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   应收股利</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010106.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010106.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">  应交税费</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010306.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010306.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   应收利息</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010107.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010107.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">  应付利息</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010307.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010307.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">  其他应收款</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010108.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010108.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   应付利润</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010308.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010308.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">  存货</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010109.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010109.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">    其他应付款</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010309.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010309.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   其中：原材料</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010110.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010110.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   其他流动负债</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010310.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010310.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   在产品</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010111.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010111.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   流动负债合计</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010311.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010311.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   库存商品</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010112.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010112.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">  非流动负债：</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   周转材料</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010113.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010113.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">  长期借款</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010401.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010401.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   其他流动资产</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010114.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010114.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">  长期应付款</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010402.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010402.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">  流动资产合计</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010115.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010115.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   递延收益</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010403.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010403.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">  非流动资产：</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   其他非流动负债</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010404.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010404.endSum) }}</div>
        </div>

        <div class="table_cont  emp">
          <div class="label">    长期债券投资</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010201.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010201.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   非流动负债合计</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010214.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010214.endSum) }}</div>
        </div>

        <div class="table_cont  emp">
          <div class="label">   长期股权投资</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010202.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010202.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">    负债合计</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010406.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010406.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">    固定资产原价</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010203.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010203.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   实收资本(或股本)</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010001.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010001.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">    减:累计折旧</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010204.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010204.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">    资本公积</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010002.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010002.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   固定资产账面价值</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010205.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010205.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">    盈余公积</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010003.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010003.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">    在建工程</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010206.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010206.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   未分配利润</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010004.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010004.endSum) }}</div>
        </div>

        <div class="table_cont  emp">
          <div class="label">   工程物资</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010207.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010207.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   所有者权益(或股东权益)合计</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010006.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010006.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   固定资产清理</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010208.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010208.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   负债和所有者权益（或股东权益）总计</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010007.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010007.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">    生产性生物资产</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010209.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010209.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   表外项目及对资产负债表的其它说明:</div>
          <div class="label_cont">{{ toThousands(111) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">    无形资产</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010210.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010210.endSum) }}</div>
        </div>
        <div class="table_cont  emp" />
        <div class="table_cont  emp">
          <div class="label">   开发支出</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010211.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010211.endSum) }}</div>
        </div>
        <div class="table_cont  emp" />
        <div class="table_cont  emp">
          <div class="label">   长期待摊费用</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010212.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010212.endSum) }}</div>
        </div>
        <div class="table_cont  emp" />
        <div class="table_cont  emp">
          <div class="label">   其他非流动资产</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010213.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010213.endSum) }}</div>
        </div>
        <div class="table_cont  emp" />
        <div class="table_cont  emp">
          <div class="label">   非流动资产合计</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010214.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010214.endSum) }}</div>
        </div>
        <div class="table_cont  emp" />
        <div class="table_cont  emp">
          <div class="label">   资产总计</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010215.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A010215.endSum) }}</div>
        </div>

      </div>

      <div class="title4 emp">
        损益表
      </div>
      <div class="table1 table1_2 emp">
        <div class="table_cont  emp">
          <div class="label">科目</div>
          <div class="label_cont">上年度（元）</div>
          <div class="label_cont">本年度（元）</div>
        </div>

        <div class="table_cont  emp">
          <div class="label">科目</div>
          <div class="label_cont">上年度（元）</div>
          <div class="label_cont">本年度（元）</div>
        </div>

        <div class="table_cont  emp">
          <div class="label">   营业总收入</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A020001.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A020001.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   利润总额</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A020003.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A020003.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   营业总成本</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A020002.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A020002.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   所得税</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A020005.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A020005.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   营业利润</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A020004.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A020004.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   净利润</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A020006.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A020006.endSum) }}</div>
        </div>
        <div class="table_cont  emp" />
        <div class="table_cont  emp">
          <div class="label">   营业利润率（%）</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A020007.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A020007.endSum) }}</div>
        </div>

        <div class="table_cont  emp" />
        <div class="table_cont  emp">
          <div class="label">   净利率（%）</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A020008.beginSum) }}</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A020008.endSum) }}</div>
        </div>

      </div>

      <div class="title4 emp">
        营运资金需求量信息
      </div>
      <div class="table1 table1_5 emp">
        <div class="table_cont  emp">
          <div class="label">存货周转天数</div>
          <div class="label_cont">{{ toThousands(finaPay.stockTurnoverDays) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">预付账款周转天数</div>
          <div class="label_cont">{{ toThousands(finaPay.prepayTurnoverDays) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">上年营业额（元）</div>
          <div class="label_cont">{{ toThousands(finaPay.turnoverLastyear) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">营运资金量（元）</div>
          <div class="label_cont">{{ toThousands(finaPay.workingCapital) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">其他渠道营运资金</div>
          <div class="label_cont">{{ toThousands(finaPay.otherWorkCapital) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">应收账款周转天数</div>
          <div class="label_cont">{{ toThousands(finaPay.debtTurnoverDays) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">预收账款周转天数</div>
          <div class="label_cont">{{ toThousands(finaPay.prereTurnoverDays) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">上年营业成本（元）</div>
          <div class="label_cont">{{ toThousands(finaPay.costLastyear) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">申请人自有资金</div>
          <div class="label_cont">{{ toThousands(finaPay.ownerCapital) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">新增流动资金贷款额度（元）</div>
          <div class="label_cont">{{ toThousands(finaPay.newLoadQuota) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">应付账款周转天数</div>
          <div class="label_cont">{{ toThousands(finaPay.payableTurnoverDays) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">营运资金周转次数</div>
          <div class="label_cont">{{ toThousands(finaPay.serTurnoverDays) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">预计本年营业额增长率（%）</div>
          <div class="label_cont">{{ toThousands(finaPay.turnoverGrowRate) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">现有流动资金贷款</div>
          <div class="label_cont">{{ toThousands(finaPay.nowCapitalLoan) }}</div>
        </div>

      </div>
    </div>

    <!-- 简易财务报表 -->
    <div v-if="titleCont.statementType==='2'">

      <div class="title2 emp">
        财务报表（简易版）
      </div>
      <div class="title4 emp">
        资产负债表
      </div>

      <div class="table1 table1_2 emp">
        <div class="table_cont  emp">
          <div class="label">科目</div>
          <div class="label_cont">金额（元）</div>
        </div>

        <div class="table_cont  emp">
          <div class="label">科目</div>
          <div class="label_cont">金额（元）</div>
        </div>

        <div class="table_cont  emp">
          <div class="label">   现金、银行存款</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A030101.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   银行借款</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A030201.endSum) }}</div>
        </div>

        <div class="table_cont  emp">
          <div class="label">   应收账款</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A030102.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   其他负债业务（小贷公司等其他非银金融机构）</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A030202.endSum) }}</div>
        </div>

        <div class="table_cont  emp">
          <div class="label">   预付账款</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A030103.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   信用卡</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A030203.endSum) }}</div>
        </div>

        <div class="table_cont  emp">
          <div class="label">   存货</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A030104.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   预收账款</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A030204.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   固定资产</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A030105.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   应付账款</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A030205.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   其中：（1）经营性房地产</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A030106.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   长期负债及其他负债</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A030206.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   （2）机器设备</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A030107.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   负债合计</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A030207.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   （3）经营性车辆</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A030108.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   权益合计</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A030208.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   其他经营性资产</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A030109.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label" />
          <div class="label_cont" />
        </div>
        <div class="table_cont  emp">
          <div class="label">   资产总计</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A030111.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   表外资产（如有）</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A030110.endSum) }}</div>
        </div>

      </div>

      <div class="title4 emp">
        损益表
      </div>

      <div class="table1 table1_2 emp">
        <div class="table_cont  emp">
          <div class="label">科目</div>
          <div class="label_cont">金额（元）</div>
        </div>

        <div class="table_cont  emp">
          <div class="label">科目</div>
          <div class="label_cont">金额（元）</div>
        </div>

        <div class="table_cont  emp">
          <div class="label">   近12个月开票营业额</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A040024.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   近12个月净利润</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A040016.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   近12个月未开票营业额</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A040001.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   近12个月其他支出</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A040017.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   近12个月营业成本（可变成本）</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A040002.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   近12个月其他收入</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A040021.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   近12个月营业费用（固定成本）</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A040003.endSum) }}</div>
        </div>
        <div class="table_cont  emp">
          <div class="label">   月可支配收入</div>
          <div class="label_cont">{{ toThousands(commonFinancial.A040022.endSum) }}</div>
        </div>
      </div>
    </div>
    <!-- 新增资产负债表明细 -->
    <div>
      <div class="title2 emp">
        资产负债表明细
      </div>
      <div class="title3 emp">
        资产明细
      </div>
      <div class="title4 emp">
        应收账款、其他应收款
      </div>
      <div class="table2 emp">
        <div class="th emp">
          <div class="label">序号</div>
          <div class="label">债务人</div>
          <div class="label">发生日期</div>
          <div class="label">账龄</div>
          <div class="label">预计回收时间</div>
          <div class="label">金额（元）</div>
          <div class="label">结算方式</div>
          <div class="label">备注</div>
        </div>
        <div v-if="!alb.collaterals.receiveAccount" class="noneCont">暂无数据</div>
        <div v-for="(item,index) in alb.collaterals.receiveAccount" :key="item.uuid" class="td emp">
          <div class="label_cont">{{ index+1 }}</div>
          <div class="label_cont">{{ item.debtUsername }}</div>
          <div class="label_cont">{{ item.occurTime.slice(0,10) }}</div>
          <div class="label_cont">{{ item.accountAge }}</div>
          <div class="label_cont">{{ item.receiveTimePlan.slice(0,10) }}</div>
          <div class="label_cont">{{ toThousands(item.receiveAtm ) }}</div>
          <div class="label_cont">{{ item.settlementType }}</div>
          <div class="label_cont">{{ item.remark }}</div>
        </div>
      </div>

      <div class="title4 emp">
        预付账款
      </div>
      <div class="table2 emp">
        <div class="th emp">
          <div class="label">序号</div>
          <div class="label">预付对象</div>
          <div class="label">发生日期</div>
          <div class="label">预计到货时间</div>
          <div class="label">金额（元）</div>
          <div class="label">结算方式</div>
          <div class="label">备注</div>
        </div>
        <div v-if="!alb.collaterals.prePayAccount" class="noneCont">暂无数据</div>
        <div v-for="(item,index) in alb.collaterals.prePayAccount" :key="item.uuid" class="td emp">
          <div class="label_cont">{{ index+1 }}</div>
          <div class="label_cont">{{ item.prePayObj }}</div>
          <div class="label_cont">{{ item.occurTime.slice(0,10) }}</div>
          <div class="label_cont">{{ item.prePayTimePlan.slice(0,10) }}</div>
          <div class="label_cont">{{ toThousands(item.prePayAtm ) }}</div>
          <div class="label_cont">{{ item.settlementType }}</div>
          <div class="label_cont">{{ item.remark }}</div>
        </div>
      </div>

      <div class="title4 emp">
        存货，固定资产
      </div>
      <div class="table2 emp">
        <div class="th emp">
          <div class="label">序号</div>
          <div class="label">名称（原材料、库存产品等等）</div>
          <div class="label">数量</div>
          <div class="label">总价值（元）</div>
          <div class="label">备注</div>
        </div>
        <div v-if="!alb.collaterals.stocks" class="noneCont">暂无数据</div>
        <div v-for="(item,index) in alb.collaterals.stocks" :key="item.uuid" class="td emp">
          <div class="label_cont">{{ index+1 }}</div>
          <div class="label_cont">{{ item.stockName }}</div>
          <div class="label_cont">{{ item.stockCount }}</div>
          <div class="label_cont">{{ toThousands(item.stockTotalAmount ) }}</div>
          <div class="label_cont">{{ item.remark }}</div>
        </div>
      </div>

      <div class="title3 emp">
        负债明细
      </div>
      <div class="title4 emp">
        应付账款、其他应付款
      </div>
      <div class="table2 emp">
        <div class="th emp">
          <div class="label">序号</div>
          <div class="label">债务人</div>
          <div class="label">发生日期</div>
          <div class="label">账龄</div>
          <div class="label">预计回收时间</div>
          <div class="label">金额（元）</div>
          <div class="label">结算方式</div>
          <div class="label">备注</div>
        </div>
        <div v-if="!alb.debts.payAccount" class="noneCont">暂无数据</div>
        <div v-for="(item,index) in alb.debts.payAccount" :key="item.uuid" class="td emp">
          <div class="label_cont">{{ index+1 }}</div>
          <div class="label_cont">{{ item.payUsername }}</div>
          <div class="label_cont">{{ item.occurTime.slice(0,10) }}</div>
          <div class="label_cont">{{ item.accountAge }}</div>
          <div class="label_cont">{{ item.payTimePlan.slice(0,10) }}</div>
          <div class="label_cont">{{ toThousands(item.payAtm ) }}</div>
          <div class="label_cont">{{ item.settlementType }}</div>
          <div class="label_cont">{{ item.remark }}</div>
        </div>
      </div>

      <div class="title4 emp">
        预收账款
      </div>
      <div class="table2 emp">
        <div class="th emp">
          <div class="label">序号</div>
          <div class="label">预收对象</div>
          <div class="label">收款日期</div>
          <div class="label">预计发货时间</div>
          <div class="label">金额（元）</div>
          <div class="label">结算方式</div>
          <div class="label">备注</div>
        </div>
        <div v-if="!alb.debts.preGetAccount" class="noneCont">暂无数据</div>
        <div v-for="(item,index) in alb.debts.preGetAccount" :key="item.uuid" class="td emp">
          <div class="label_cont">{{ index+1 }}</div>
          <div class="label_cont">{{ item.prePayObj }}</div>
          <div class="label_cont">{{ item.preGetTimePlan.slice(0,10) }}</div>
          <div class="label_cont">{{ item.payTimePlan.slice(0,10) }}</div>
          <div class="label_cont">{{ toThousands(item.preGetAtm ) }}</div>
          <div class="label_cont">{{ item.settlementType }}</div>
          <div class="label_cont">{{ item.remark }}</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    titleCont: {
      type: Object,
      default: null
    },
    alb: {
      type: Object,
      default: null
    },
    commonFinancial: {
      type: Object,
      default: null
    },
    refinanceDataXrd: {
      type: String,
      default: ''
    }
  },
  data() {
    return {

    }
  },
  methods: {
    toThousands(s, n) {
      n = 2// n > 0 && n <= 20 ? n : 2
      if (s) {
        s = parseFloat((s + '').replace(/[^\d\.-]/g, '')).toFixed(n) + ''
        if (isNaN(s)) {
          return ''
        } else {
          var l = s.split('.')[0].split('').reverse()
          var r = n > 0 ? s.split('.')[1] : ''
          var t = ''
          for (var i = 0; i < l.length; i++) {
            t += l[i] + ((i + 1) % 3 === 0 && (i + 1) !== l.length ? ',' : '')
          }
          return n > 0 ? (t.split('').reverse().join('') + '.' + r) : t.split('').reverse().join('')
        }
      } else {
        if (s === 0) {
          if (n > 0) {
            return s.toFixed(n)
          } else {
            return 0
          }
        } else {
          return ''
        }
      }
    }
  }
}
</script>
<style lang="scss" scoped>
.main_table{
      border: 1px solid #cccccc;
      border-top: none;
        .title1{
            font-weight: bolder;
            text-align: center;
            font-size: 16px;
            padding: 10px;
            border-bottom: 1px solid #cccccc;
            border-top: 1px solid #cccccc;
            margin-top: -1px;
        }
        .title2{
            font-weight: bolder;
            text-align: center;
            font-size: 14px;
            padding: 10px;
            border-bottom: 1px solid #cccccc;
            border-top: 1px solid #cccccc;
            margin-top: -1px;
            background: #b3ecf6;
        }
        .title3{
            font-weight: bolder;
            font-size: 14px;
            padding: 10px;
            border-bottom: 1px solid #cccccc;
            border-top: 1px solid #cccccc;
            margin-top: -1px;
            //background: #c5f1fb;
        }
        .title4{
            font-size: 14px;
            padding: 10px;
            text-align: center;
            border-bottom: 1px solid #cccccc;
            border-top: 1px solid #cccccc;
            margin-top: -1px;
            background: #e0f7fc;
        }
        .noneCont{
          width: 100%;
          font-size: 13px;
          text-align: center;
          color: #cccccc;
          line-height: 30px;
          border-bottom: 1px solid #cccccc;
          border-top: 1px solid #cccccc;
            margin-top: -1px;
        }
        .empty{
          padding: 0 10px;
          width: 100%;
          font-size: 13px;
          line-height: 30px;
          border-bottom: 1px solid #cccccc;
          border-top: 1px solid #cccccc;
            margin-top: -1px;
        }
        .note{
          padding: 0 10px;
          width: 100%;
          font-size: 13px;
          line-height: 30px;
          border-bottom: 1px solid #cccccc;
          border-top: 1px solid #cccccc;
            margin-top: -1px;
        }
        .table1{
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            .table_cont{
                display: flex;
                .label{
                    flex: 1;
                    border: 1px solid #cccccc;
                    padding: 5px 10px;
                    text-align: center;
                    margin-top: -1px;
                    margin-left: -1px;
                }
                .label_cont{
                    word-break: break-all;
                    flex: 1;
                    border: 1px solid #cccccc;
                    padding: 5px 10px;
                    text-align: center;
                    margin-top: -1px;
                    margin-left: -1px;
                }
            }
            .remark{
              width: 100%;
              padding: 5px 20px;
              border-top: 1px solid #cccccc;
              border-bottom: 1px solid #cccccc;
              margin-top: -1px;
            }

        }
        .table1_2{
            .table_cont{
                width: 50%;
            }

        }
        .table1_3{
            .table_cont{
                width: 33.33%;
            }

        }
        .table1_4{
            .table_cont{
                width: 25%;
            }

        }
        .table1_5{
            .table_cont{
                width: 20%;
            }

        }
        .table2{
            width: 100%;
            .th{
                display: flex;
                .label{
                    flex: 1;
                    border: 1px solid #cccccc;
                    padding: 5px 10px;
                    text-align: center;
                    margin-top: -1px;
                    margin-left: -1px;

                }

            }
            .td{
                display: flex;
                .label_cont{
                    flex: 1;
                    border: 1px solid #cccccc;
                    padding: 5px 10px;
                    text-align: center;
                    margin-top: -1px;
                    margin-left: -1px;
                    word-wrap: break-word;
                    width: 0;

                }

            }

        }
    }
</style>
